FROM registry.chentaihealth.cn/base/kv:1.0

RUN cd /data && \
    wget -O canal.deployer-1.1.8.tar.gz \
        https://github.com/alibaba/canal/releases/download/canal-1.1.8/canal.deployer-1.1.8.tar.gz && \
    tar -zxvf canal.deployer-1.1.8.tar.gz && \
    rm -f canal.deployer-1.1.8.tar.gz && \
    chown -R www-data:www-data . && \
    \
    apk add --no-cache -t .java openjdk11

